﻿@model IList<Questions>
@{
    ViewBag.Title = "途丫问答";
}

<script src="@Url.Content("~/scripts/ASK/Main.js")" type="text/javascript"></script>

@Html.Stylesheet("~/styles/ASK/main.css")
<ul class="path floatContainer">
	<li class="first">@Html.ActionLinkLocalized("途丫问答", "List", "Ask")</li>
</ul>

<div class="main">
    <div class="ask_wp">
        <div class="ask_top_detail">
        <h2></h2>
        <p>
        <strong class="fb">欢迎来到i途丫问答！</strong>
        关于旅行，你和其他每一位i途丫er都可能会遇到各种的问题，无论你是新手上路，还是i途丫高手，提出你的问题，分享你的答案，在这里让我们大家帮助大家。 先来看看<a rel="nofollow" title="如何使用i途丫问答" target="_blank" href="#">如何使用i途丫问答</a>吧 </p>
        </div>
    </div>
    <div class="ask_search">
    	<div class="ask_search_main">
            <div class="ask_search_text">
				<input id="type" name="type" type="hidden" value="index">
				<form action="/search" method="get" id="formsearch">
                <input id="keyword" name="q" type="text" style="width: 600px; color: rgb(149, 149, 149); " value="" placeholder="提问前请先搜索，看看你的问题其他途丫客是否已经问过" class="ui_input" autocomplete="off">
                <input type="button" value=" " onclick="if($.trim($('#keyword').val())!='' &amp;&amp; $.trim($('#keyword').val())!='提问前请先搜索，看看你的问题其他途丫客是否已经问过'){$('#formsearch').submit();}" class="ask_button">
				</form>
				<div id="search_menu"></div>
            </div>		
         </div>
        <div class="ask_askhelp_btn">
            <a rel="nofollow" title="我要提问" href="@Url.Action("AddQuestion", "Ask")"><img src="@Url.Content("~/styles/ASK/images/ask_addask_btn.png") " width="147" height="40" alt="我要提问"></a>
        </div>
    </div>
    <div class="ask_item" style="margin-top:-32px;">
    	<div class="ask_item_main fl">
        <h3 class="fb f14 cGray">
        @Html.ActionLink("最新问题","LatestQuesions","Ask",null,new{@class=""})
						&nbsp;&nbsp;&nbsp;&nbsp;
		@Html.ActionLink("热门问题", "HotQuesions", "Ask", null, new { @class = "" })
						&nbsp;&nbsp;&nbsp;&nbsp;
		@Html.ActionLink("待回答", "UnansweredQuesions", "Ask", null, new { @class = "" })
		</h3>   
        <div class="ask_item_main_item">
        @foreach (Questions q in Model)
        {
            var id = "question-summary-"+q.Id;
            <div class="question-summary" id="@id">
            
            <div class="statscontainer">
            <div class="statsarrow"></div>
            <div class="stats">
            <div class="vote">
                <div class="votes">
                    <span class="vote-count-post"><strong>@q.Voted</strong></span>
                    <div class="viewcount">同问</div>
                </div>
            </div>
            <div class="@((q.Answers.Count == 0) ? "status unanswered" : "status answered")">
                    <strong>@q.Answers.Count</strong>回答
            </div>

            </div>
            <div class="views">@q.ViewCount 看过</div>
            </div>

            <div class="summary"> 
            <h3>@Html.ActionLink(q.Title, "DetailQuestion", "Ask", new { id = q.Id, pageNum = 1 }, null)</h3>
            <div class="excerpt">
                @q.Description
            </div>
            <div class="tags">
                @*@q.Tags.ToString()*@
            </div>
            <div class="started fr">
                <div class="user-info">
                    <div class="user-action-time">提问 <span class="relativetime"> @Html.Partial("SinceDate", q.PublishDate)前</span></div>
                    <div class="user-gravatar32">@Html.ActionLink(q.User.UserName, "Detail", "Users", new { id = q.User.Id }, null)</div>
                    <div class="user-details"></div>
                </div>
            </div>
            </div>

            </div>
            <div class="clear"></div>
        }
        </div>
        <div class="clear"></div>
        </div>
        <div class="ask_sidebar fr">
            <div class="ask_sidebar_all f14">
            	    共 <strong class="fb">190985</strong> 个问题，<strong class="fb">114136</strong> 人参与
            </div>
            <div class="ask_sidebar_star mt10"></div>
            <div class="ask_sidebar_tag mt10"></div>
        </div>
    </div>
    <div class="clear"></div>
</div>
